<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class About extends Site_Controller {

	private $legalityId 	= PAGE_LEGALITY_ID;
	private $philosophyId 	= PAGE_PHILOSOPHY_ID;
	private $associationId 	= PAGE_ASSOCIATION_ID;
	private $mgProfileId 	= PAGE_MG_PROFILE_ID;
	
	public function __construct(){
		parent::__construct();
	}

	public function index(){
		$this->legality();
	}
	
	public function legality(){
		$data['data'] = $this->mod_content->getPageById($this->legalityId);
		
		$data['title']	= 'Company Legality';
		$data['page']	= 'content/about/view';
		$data['action']	= 'Company Legality';
		$this->load->view('layout/layout',$data);
	}
	
	public function philosophy(){
		$data['data'] = $this->mod_content->getPageById($this->philosophyId);
		
		$data['title']	= 'Our Company Philosophies';
		$data['page']	= 'content/about/view';
		$data['action']	= 'Our Company Philosophies';
		$this->load->view('layout/layout',$data);
	}
	
	public function association(){
		$data['data'] = $this->mod_content->getPageById($this->associationId);
		
		$data['title']	= 'Our Association Mill House';
		$data['page']	= 'content/about/view';
		$data['action']	= 'Our Association Mill House';
		$this->load->view('layout/layout',$data);
	}
	
	public function management_profile(){
		$data['data'] = $this->mod_content->getPageById($this->mgProfileId);
		
		$data['title']	= 'Management Profile';
		$data['page']	= 'content/about/view';
		$data['action']	= 'Management Profile';
		$this->load->view('layout/layout',$data);
	}
}